package com.itany.nmms.service;

import com.itany.mvc.util.CommonsMultipartFile;
import com.itany.nmms.exception.FileUploadErrorException;
import com.itany.nmms.exception.ProductExistException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.ServiceException;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/4/29 10:28
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface ProductService {

    /**
     * 添加商品信息
     * 同一个类型的商品名称不能重复
     * @param name
     * @param price
     * @param files
     * @param typeId
     * @param session
     */
    public void addProduct(String name, String price, List<CommonsMultipartFile> files, String typeId, HttpSession session) throws RequestParameterErrorException, ProductExistException, FileUploadErrorException, ServiceException;

}
